// src/api/index.js
import request from "@/api/axios";

// 示例：获取商品信息
// 导出一个函数，用于获取产品列表
export function AlipayPagePay(AlipayTradePagePayViewModel: any): Promise<any> {
  // 发送一个get请求，获取产品列表

  debugger;
  return request({
    url: `PagePay?OutTradeNo=${AlipayTradePagePayViewModel.OutTradeNo}&Subject=${AlipayTradePagePayViewModel.Subject}&Body=${AlipayTradePagePayViewModel.Body}&TotalAmount=${AlipayTradePagePayViewModel.TotalAmount}&NotifyUrl=${AlipayTradePagePayViewModel.NotifyUrl}&ReturnUrl=1${AlipayTradePagePayViewModel.ReturnUrl}`,
    method: "post",
  });
}
 